package com.oak.consumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 使用openFeign调用服务端服务
 * com.oak.consumer -> OpenFeignService
 *
 * @Author: guoxy
 * @Description:
 * @Date: 2022/5/31
 */
@Service
@FeignClient(value = "provide-server")
public interface OpenFeignService {

    @GetMapping("/order")
    String orderServer();
}
